package org.codeart.boss.remote;

import org.codeart.common.dto.Car;
import org.codeart.common.dto.DriverCarBindingRelationship;
import org.codeart.common.dto.DriverUser;
import org.codeart.common.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "service-driver-user")
public interface ServiceDriverUserClient {
    
    @PostMapping("/user")
    R<Void> addDriverUser(@RequestBody DriverUser driverUser);

    @PutMapping("/user")
    R<Void> updateDriverUser(@RequestBody DriverUser driverUser);
    
    @PostMapping("/car")
    R<Void> addCar(@RequestBody Car car);

    @PostMapping("/driver-car-binding-relationship/bind")
    R<Void> bind(@RequestBody DriverCarBindingRelationship driverCarBindingRelationship);
    
    @PutMapping("/driver-car-binding-relationship/unbind")
    R<Void> unbind(@RequestBody DriverCarBindingRelationship driverCarBindingRelationship);

}
